package com.example.teacherservice.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class StudentBasicDTO {
    private Long id;
    private String stuName;
    private Long stuStudyTime;
    private Long stuScore;
    private String clock;
    private LocalDateTime createTime;

    // 添加4参数构造函数
    public StudentBasicDTO(Long id, String stuName, Long stuStudyTime, Long stuScore) {
        this.id = id;
        this.stuName = stuName;
        this.stuStudyTime = stuStudyTime;
        this.stuScore = stuScore;
        this.clock = null;
        this.createTime = null;
    }
}